package com.googlecode.mailnet.emf.netmodel.analizer;

import java.util.Iterator;

import com.googlecode.mailnet.info.ILinkInfo;
import com.googlecode.mailnet.info.ISimulationInfo;

public class Analyzer {
	ISimulationInfo simulationInfo;
	
	public Analyzer(ISimulationInfo simulationInfo) {
		this.simulationInfo = simulationInfo;
	}
	
	public int getTotalAttemptedToTransferPerStep() {
		int result = 0;
		Iterator<? extends ILinkInfo> i = simulationInfo.getLinkInfoSet().values().iterator();
		while (i.hasNext()) {
			ILinkInfo linkInfo = i.next();
			result += linkInfo.getAttemptedToTransferPerStep();
		}
		return result;
	}

}
